package com.zdx.yswl.ui.activity;

import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.umeng.analytics.MobclickAgent;
import com.zdx.yswl.R;
import com.zdx.yswl.ui.base.BaseWebViewActivity;

public class WebViewActivity extends BaseWebViewActivity {

	@Override
	public int loadView_Lanscape() {
		return R.layout.activity_webview;
	}

	@Override
	public int loadView() {
		return R.layout.activity_webview;
	}

	@Override
	public void initView() {

		super.mTitle = (TextView) super.findViewById(R.id.nav_title);
		mTitle.setText("WEB");
		super.mBack = (ImageView) super.findViewById(R.id.nav_left);
		mBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		super.webView = (WebView) super.findViewById(R.id.web_view);
		super.mLayout = (RelativeLayout) webView.getParent();
		
	}

	
	
	/**友盟session的统计*/
	protected void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
	}

	@Override
	protected void initSettings()
	{

	}

	@Override
	protected void initUi()
	{

	}

	@Override
	protected void saveSettings()
	{

	}

	@Override
	protected void freeMe()
	{

	}

	/**友盟session的统计*/
	protected void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
	}

	@Override
	public void onNotify(int what, int arg1, int arg2, Object obj)
	{

	}

	@Override
	public void onHandler(int what, int arg1, int arg2, Object obj)
	{

	}
}
